/*
 * @Author: 李琪 liqi@lark2game.com
 * @Date: 2024-12-10 14:58:29
 * @LastEditors: 李琪 liqi@lark2game.com
 * @LastEditTime: 2024-12-10 15:15:30
 * @FilePath: /cramped-room/assets/Script/Scene/buttonControl.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { _decorator, Component, Node } from 'cc';
import EventManager from '../Runtime/EventManager';
import { GAME_EVENT_ENUM } from '../Config/Enums/EnumsIndex';
const { ccclass, property } = _decorator;

@ccclass('buttonControl')
export class buttonControl extends Component {
    onBtnClickedLevel() {
        console.log('onBtnClickedLevel');

        EventManager.Instance.emit(GAME_EVENT_ENUM.ChangeLevel);

    }
}

